@layout("/common/_container.html",{js:["/assets/common/libs/pinyin/initials.js","/assets/common/libs/pinyin/pinyin.js","/assets/modular/system/btyBxda/btyBxda_add2.js","/assets/modular/system/dgdzxChengbenMingxi/zxChengbenMingxi_new.js"]}){
<link rel="stylesheet" href="${ctxPath}/assets/common/css/pack.css?v=${constants.getReleaseVersion()}" media="all">
<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card fix">
                <div class="layui-card-body">


                    <div class="layui-form toolbar">
                        <div class="layui-form-item">

<!--                            <span class="zxxz">添加：</span>-->
                            <form id="zxChengbenMingxiForm" lay-filter="zxChengbenMingxiForm">
                                <div class="layui-inline" id="btyZxMdzxId_div" style="width: 800px;" >
                                    <label class="layui-form-label zx-name" id="md_sx">门店</label>
                                    <div class="layui-inline" style="display: inline-block;width: 750px;">
                                        <!--                                            <select id="btyZxMdzxId" name="btyZxMdzxId" lay-filter="queryhp"-->
                                        <!--                                                    lay-search="btyZxMdzxId">-->
                                        <!--                                                <option value="">请选择</option>-->
                                        <!--                                            </select>-->
                                        <select xm-select="btyZxMdzxId" lay-filter="queryhp" id="btyZxMdzxId" name="btyZxMdzxIds"
                                                xm-select-search="" xm-select-search-type="dl">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-col-sm12 zx">
                                    <input type="hidden" id="userId" name="userId" value="${curuser.id}">
<!--                                    <div class="layui-inline" id="btyZxMdzxId_div" style="margin-left: 0px;vertical-align: middle">-->
<!--                                        <label class="layui-form-label" id="md_sx">门店<span style="color: red;">(必选)</span></label>-->

<!--                                        <div class="layui-inline" style="display: inline-block">-->
<!--                                            <select id="btyZxMdzxId" name="btyZxMdzxId" lay-filter="queryhp"-->
<!--                                                    lay-search="btyZxMdzxId"  lay-verify="required" style="float: left">-->
<!--                                            </select>-->
<!--                                        </div>-->
<!--                                    </div>-->

                                    <div class="layui-inline" style="margin-left: 0px;">
                                        <label class="layui-form-label" id="bxr_sx">报销人<span style="color: red;">(必选)</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select name="btyyBxdaId" lay-filter="btyyBxdaId" id="btyyBxdaId" lay-verify="required"
                                                    lay-search="btyyBxdaId">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" id="qtkm_div">
                                        <label class="layui-form-label" id="gjz_sx"><span>关键字<span style="color: red;">(必选)</span></span></label>
                                        <div class="layui-inline" style="display: inline-block">

<!--                                            <input name="qtkm" type="hidden"/>-->
                                            <select id="keywordId" name="keywordId" lay-filter="keywordId" lay-verify="required"
                                                    lay-search="keywordId">
                                            </select>

                                        </div>
                                        <span id="gjz_qk">清空</span>
                                    </div>
                                </div>
                                <div class="layui-col-sm12">
                                    <div class="layui-inline">
                                        <label class="layui-form-label zx-name">金额<span style="color: red;">(必选)</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="shuliang" name="shuliang" placeholder="数量" type="text" value="1"
                                                   class="layui-input" lay-verify="required|double" size="2">


                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="unitPrice" name="unitPrice" placeholder="单价" type="text"
                                                   class="layui-input" lay-verify="required|double" size="2"/>
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="jine" name="jine" readonly placeholder="金额" type="text"
                                                   class="layui-input" lay-verify="required|double" size="6"/>
                                        </div>
                                    </div>



                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input type="checkbox" lay-filter="choudian" id="choudian" name="choudian" title="抽点" lay-skin="primary">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="companyView" name="companyView" placeholder="" value="0.00" type="text"
                                                   class="layui-input" lay-verify="" size="8"/>
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <div class="layui-inline" style="display: inline-block">
                                            <input id="beizhu" name="beizhu" placeholder="请输入备注" type="text"
                                                   class="layui-input" lay-verify="" size="15"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <div class="layui-inline w-90" style="display: inline-block">
                                            <select id="status" name="status" style="float: left">
                                                <option value="2" selected>待打款</option>
                                                <option value="1">已打款</option>
                                                <option value="6">预留</option>
                                                <option value="9">负单</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <a class="layui-btn" lay-filter="btnSubmit" lay-submit>添加</a>
                                        <a id="btnQingkong" class="layui-btn layui-btn-primary">清空</a>
                                        <a id="createDakuandan1" class="layui-btn layui-btn-primary">提交</a>
                                    </div>
                                </div>
                                <div class="layui-col-sm12" style="">


                                    <div class="layui-inline " id="btyZxChengbenId_div" style="margin-left: 0px;vertical-align: middle">
                                        <label class="layui-form-label"  id="cb_sx">单号<span style="color: red;">(必选)</span></label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select id="btyZxChengbenId" name="btyZxChengbenId" lay-filter="btyZxChengbenId"
                                                    lay-search="btyZxChengbenId"  style="float: left">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label zx-name">日期</label>
                                        <div class="layui-inline w-90" style="display: inline-block">
                                            <input id="riqi1" name="riqi1" placeholder="请选择日期" type="text" readonly
                                                   class="layui-input" autocomplete="off"/>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
<!--                                        <label class="layui-form-label">状态</label>-->
                                        <div class="layui-inline w-110" style="display: inline-block">
                                            <select id="status1" name="status1" style="float: left;" >
                                                <option value="">全部状态</option>
                                                <option value="4">待提交</option>
                                                <option value="5">被打回</option>
                                                <option value="3">待审核</option>
                                                <option value="2">待打款</option>
                                                <option value="1">已打款</option>
                                                <option value="6">预留</option>
                                                <option value="9">负单</option>
                                                <option value="10">已删除</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="">
                                        <label class="layui-form-label">录入人</label>
                                        <div class="layui-inline" style="display: inline-block">
                                            <select name="createUser" lay-filter="createUser" id="createUser"
                                                    lay-search="createUser">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <a id="btnSearch" class="layui-btn" style="">搜索 </a>
                                        <a id="bxdaAdd" class="layui-btn layui-btn-primary">添加报销档案</a>
                                    </div>
                                    <div class="layui-inline">
                                        <ul class="layui-nav layui-bg-blue" style="margin-left: 10px; padding: 0; background-color: #10b1c6!important">

                                            <li class="layui-nav-item" lay-unselect="" style="line-height:26px;z-index:9999" >
                                                <a href="javascript:;" style="font-size: 12px; padding: 0 30px 0 10px;color: #FFF">操作</a>
                                                <dl class="layui-nav-child" style="top:26px; font-size: 12px">
                                                    <!--<dd><a id="shenpi_tg">审批通过</a></dd>-->
                                                    <!--<dd><a id="shenpi_dh">审批打回</a></dd>-->
                                                    <dd><a id="kemuKeyAdd">添加关键字</a></dd>
                                                    <dd><a id="kemuTongbu">科目同步</a></dd>
                                                    <dd><a id="batchZ2">批量转待打款</a></dd>
                                                    <dd><a id="batchZ1">批量转已打款</a></dd>
                                                    <dd><a id="pl_choudian">抽点</a></dd>
                                                    <dd><a id="qx_choudian">取消抽点</a></dd>
                                                    <dd><a id="batch_mendian">批量调整门店</a></dd>
                                                    <dd><a id="merge_mendian">合并门店</a></dd>
                                                </dl>
                                            </li>
                                        </ul>
                                    </div>
                                </div>

                            </form>

                        </div>
                    </div>
                    <table class="layui-table" id="zxChengbenMingxiTable" lay-filter="zxChengbenMingxiTable"></table>
                </div>

            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.srcType != ''){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="shenhe">审核</a>
    {{# } else if (d.status != 1 ){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    {{#  }else{ }}
    {{#  } }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="chakan">查看</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>

</script>
<script id="statusTpl" type="text/html">
    {{#  if(d.btyZxChengbenId == ""){ }}
    未生成
    {{#  }else{ }}
    已生成🔒
    {{#  } }}
</script>

<script id="statusTpl2" type="text/html">
    {{#  if(d.status == "4"){ }}
    待提交
    {{#  }else if(d.status == "3"){ }}
    待审批
    {{#  }else if(d.status == "2"){ }}
    待打款
    {{#  }else if(d.status == "1"){ }}
    已打款
    {{#  }else if(d.status == "6"){ }}
    预留
    {{#  }else if(d.status == "7"){ }}
    不打款
    {{#  }else if(d.status == "9"){ }}
    负单
    {{#  }else if(d.status == "8"){ }}
    分账中
    {{#  }else if(d.status == "5"){ }}
    被打回
    {{#  }else{ }}
    其他
    {{#  } }}
</script>
@}
